﻿using System;
using NUnit.Framework;

/*
 * Kako pokrenuti NUnit iz visual studia express kroz external tool:
 * http://qtp-automate.blogspot.com/2013/10/how-to-execute-invoke-nunit-from-visual.html
 */
namespace Zadatak2.Tests
{
    [TestFixture]
    public class CelzijusUFarenheitPretvaracTest
    {
        CelzijusUFarentheitPretvarac pretvarac = new CelzijusUFarentheitPretvarac();

        [Test,
        TestCase(0.000, 32.000),   // (celzijus, farenheit)
        TestCase(1.000, 33.800),
        TestCase(2.000, 35.600),
        TestCase(3.000, 37.400),
        TestCase(4.000, 39.200),
        TestCase(5.000, 41.000)]
        public void Treba_ispravno_pretvoriti_celzijuse_u_farenheite(double c, double f)
        {
            Assert.AreEqual(f, pretvarac.pretvori(c));
        }
    }
}
